<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <title>首页</title>
  <link rel="stylesheet" href="./loading.css">
</head>

<body>
  <div id="antd-vue-admin-root">
    <app></app>
    <div id="loading-mask">
      <div class="loading-wrapper">
        <span class="loading-dot loading-dot-spin">
          <i></i>
          <i></i>
          <i></i>
          <i></i>
        </span>
      </div>
    </div>
  </div>
  <script type="text/javascript" src="prepare.js"></script>
  <script type="text/javascript">
    compatibilityDetection()
      .then(function() {
        // 配置全局环境变量
        window.__version__ = '2.1.0';
        window.__env__ = 'prd';
        window.__app__ = '/require-vue-admin/';
        window.__server_base_url__ = '/admin';
        window.__timeout__ = 180;
      })
      .then(function() {
        var scriptUrls = [
          './assets/libs/requirejs/require.min.js',
          './require-config/index.js',
          './index.js'
        ];

        if(window.navigator.userAgent.indexOf('Edge') > -1) {
          scriptUrls.splice(0, 0, './assets/libs/polyfill/polyfill.min.js')
        }

        scriptUrls = scriptUrls.map(url => url + '?version=' + window.__version__);
        return qwSerialLoadScripts(scriptUrls);
      })
      .catch(function () {
        var ele = document.getElementById('loading-mask');
        ele.style.display = 'none';
        document.write('对不起，不支持IE，请使用其他非 IE 内核浏览器访问，比如：360、Firefox、Chrome 浏览器');
      });
  </script>
</body>

</html>